class Solution(object):
    def maxEvents(self, events):
        """
        :type events: List[List[int]]
        :rtype: int
        """
        meet_day = []
        events.sort(key=lambda x: x[1])
        for meet in events:
            for i in range(meet[0], meet[1]+1):
                if i not in meet_day:
                    meet_day.append(i)
                    break
        return len(meet_day)

so = Solution()
res = so.maxEvents([[1,4],[4,4],[2,2],[3,4],[1,1]])
print(res)
